package cn.wxq.daily.empdailymgforserve.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 考勤
 */
public class Attendance {
    /**
     * 考勤ID（主键）
     */
    private Integer clockId;
    /**
     * 用户ID（对应用户表）
     */
    private Integer userId;

    /**
     * 用户名
     */
    private String nickName;
    /**
     * 考勤类型（1：内勤打卡，2：外勤打卡）
     */
    private String clockType;
    /**
     * 打卡地址
     */
    private String clockAddress;
    /**
     * 打卡日期
     */
//    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String clockTime;
    /**
     * 最早时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date clockStartTime;
    /**
     * 最晚时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date clockEndTime;
    /**
     * 考勤情况（1：迟到，2：早退，3：迟到+早退，4：旷工）
     */
    private String clockInfo;


    public Integer getClockId() {
        return clockId;
    }

    public void setClockId(Integer clockId) {
        this.clockId = clockId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getClockType() {
        return clockType;
    }

    public void setClockType(String clockType) {
        this.clockType = clockType;
    }

    public String getClockAddress() {
        return clockAddress;
    }

    public void setClockAddress(String clockAddress) {
        this.clockAddress = clockAddress;
    }

    public String getClockTime() {
        return clockTime;
    }

    public void setClockTime(String clockTime) {
        this.clockTime = clockTime;
    }

    public Date getClockStartTime() {
        return clockStartTime;
    }

    public void setClockStartTime(Date clockStartTime) {
        this.clockStartTime = clockStartTime;
    }

    public Date getClockEndTime() {
        return clockEndTime;
    }

    public void setClockEndTime(Date clockEndTime) {
        this.clockEndTime = clockEndTime;
    }

    public String getClockInfo() {
        return clockInfo;
    }

    public void setClockInfo(String clockInfo) {
        this.clockInfo = clockInfo;
    }

    @Override
    public String toString() {
        return "Attendance{" +
                "clockId=" + clockId +
                ", userId=" + userId +
                ", nickName='" + nickName + '\'' +
                ", clockType='" + clockType + '\'' +
                ", clockAddress='" + clockAddress + '\'' +
                ", clockTime='" + clockTime + '\'' +
                ", clockStartTime=" + clockStartTime +
                ", clockEndTime=" + clockEndTime +
                ", clockInfo='" + clockInfo + '\'' +
                '}';
    }
}
